Dashboard Temp Share Shortlinks Frames API

HTMLify

script.js
Views: 9 | Author: cody
1
2
3
4
5
6
7
8
const inputIcon = document.querySelector(".input__icon");
const inputPassword = document.querySelector(".input__field");

inputIcon.addEventListener("click", () => {
  inputIcon.classList.toggle("ri-eye-off-line");
  inputIcon.classList.toggle("ri-eye-line");
  inputPassword.type = inputPassword.type === "password" ? "text" : "password";
});